home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / roleta.swf / scripts / frame_370 / DoAction.as
Text File  |  2006-01-17  |  619b  |  37 lines

  1. vZahl = random(19);
  2. vStop = random(3);
  3. if(vStop == 1)
  4. {
  5.    sound3.stop();
  6.    sound3 = new Sound(this);
  7.    SoundID = "rad002";
  8.    sound3.attachSound(SoundID);
  9.    sound3.start(0,50);
  10.    if(vRotastop == 1)
  11.    {
  12.       gotoAndPlay(374);
  13.    }
  14.    if(vRotastop == 2)
  15.    {
  16.       gotoAndPlay(382);
  17.    }
  18.    if(vRotastop == 3)
  19.    {
  20.       gotoAndPlay(392);
  21.    }
  22.    if(vRotastop == 4)
  23.    {
  24.       gotoAndPlay(402);
  25.    }
  26. }
  27. else
  28. {
  29.    setProperty("/rad", _rotation, getProperty(rad, _rotation) + vRotadreh);
  30.    vRota += vRotadreh;
  31.    if(vRota >= 360)
  32.    {
  33.       vRota = 0;
  34.    }
  35.    gotoAndPlay(367);
  36. }
  37.